package com.leanin.oauth.mapper;

import com.leanin.domain.dao.UserDao;
import com.leanin.domain.dto.AdminUserDto;
import com.leanin.domain.vo.AdminUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper /*extends BaseMapper<UserDao>*/ {

    AdminUserDto findUserByWorkNum(@Param("workNum") String workNum);


    void addUser(@Param("adminUserVo") AdminUserVo adminUserVo);

    AdminUserVo findUserId(@Param("adminUserId") Long adminUserId);

    AdminUserDto findUserDtoId(@Param("adminUserId") Long adminUserId);

    void updateUser(@Param("adminUserVo") AdminUserVo adminUserVo);

    List<AdminUserDto> findUserPage(@Param("userName") String userName,@Param("workNum") String workNum);

    String findUserName(@Param("adminId") Long adminId);

    List<AdminUserVo> findAllUser();

    void updateUserPassword(@Param("password") String newPassword,@Param("userId") Long userId);

    List<UserDao> findByWard(@Param("wardId") Long wardId);
}
